package FlyWeight;

/**
 * @author duanzhizhou
 * @date 2024/11/5
 */
public class ConcreteWebsite extends Website {
    private final String name;
    
    public ConcreteWebsite(String name) {
        this.name = name;
    }
    
    @Override
    protected void run(User user) {
        System.out.println("网站分类： " + name + " 用户： " + user.getName());
    }
}
